﻿using System;
using System.Collections.Generic;

using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

namespace lcmyjobs.Web.enprise
{
    public partial class Test : BasePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            lcmyjobs.BLL.jobclass jc = new BLL.jobclass();
            lcmyjobs.BLL.jobs j = new BLL.jobs();

            DataTable jc_dt = jc.GetList("").Tables[0];

          
            for (int i = 0; i < jc_dt.Rows.Count; i++)
            {
                DataTable j_dt = j.GetList(" jobclass_id=" + jc_dt.Rows[i]["jobclass_id"]).Tables[0];

                if (i < 10)
                {
                    this.Label1.Text += "fun_a[\'"+ (i + 1) +"000\']=\'"+jc_dt.Rows[i]["jobclassname"] + "\'<br>";

                    for (int k = 0; k < j_dt.Rows.Count; k++)
                    {
                        if (k < 9)
                        {
                            this.Label1.Text += "fun_a[\'" + (i + 1) + "00" + (k+1) + "\']=\'" + j_dt.Rows[k]["job_name"] + "\'<br>";
                        }
                        else
                        {
                            this.Label1.Text += "fun_a[\'" + (i + 1) + "0" + (k + 1) + "\']=\'" + j_dt.Rows[k]["job_name"] + "\'<br>";
                        }
                    }
                }
                else
                {
                    this.Label1.Text += "fun_a[\'" + (i + 1) + "00\']=\'" + jc_dt.Rows[i]["jobclassname"] + "\'<br>";

                    for (int k = 0; k < j_dt.Rows.Count; k++)
                    {
                        if (k < 9)
                        {
                            this.Label1.Text += "fun_a[\'" + (i + 1) + "0" + (k + 1) + "\']=\'" + j_dt.Rows[k]["job_name"] + "\'<br>";
                        }
                        else
                        {
                            this.Label1.Text += "fun_a[\'" + (i + 1) + (k + 1) + "\']=\'" + j_dt.Rows[k]["job_name"] + "\'<br>";
                        }
                    }
                }


               
               
               
            }


        }
    }
}